package com.elitel.frame.main.entity.vo;

/**
 * created by guoyanfei on 2018/3/14
 */
public class DbkeyAndTable {
    private String dbkey;
    private String dtconfigid;

    public String getDbkey() {
        return dbkey;
    }

    public void setDbkey(String dbkey) {
        this.dbkey = dbkey;
    }

    public String getDtconfigid() {
        return dtconfigid;
    }

    public void setDtconfigid(String dtconfigid) {
        this.dtconfigid = dtconfigid;
    }

    @Override
    public int hashCode() {
        return 1;
    }

    @Override
    public boolean equals(Object obj) {
        if(this ==obj){
            return true;
        }
        if(obj == null){
            return false;
        }
        if(getClass() != obj.getClass()){
            return false;
        }
        DbkeyAndTable dbkeyAndTable = (DbkeyAndTable)obj;
        if(dbkey == null){
            if(dbkeyAndTable.getDbkey() != null){
                return false;
            }
        }else{
            if(!dbkey.equals(dbkeyAndTable.getDbkey())){
                return false;
            }
        }

        if(dtconfigid == null){
            if(dbkeyAndTable.getDtconfigid() != null){
                return false;
            }
        }else{
            if(!dtconfigid.equals(dbkeyAndTable.getDtconfigid())){
                return false;
            }
        }

        return true;
    }
}
